package com.sina.weibo;

import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.RadioButton;
import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Timer;

public class SearchPreActivity extends BaseActivity
{
  public static final String SEARCHKEYWORDLISTPATH = "/searchkeywordlistcache";
  private static final int SEARCH_MBLOG = 1;
  private static final int SEARCH_USER;
  private String keyword;
  private ArrayAdapter<String> keywordAdapter;
  HashSet<String> keywords;
  List<String> kwsList;
  private AutoCompleteTextView mActvKeyword;
  private Button mBtOk;
  private RadioButton mRbSearchUser;
  private RadioButton mRbSearchWeibo;
  private int searchFlag = 1;

  public boolean dispatchKeyEvent(KeyEvent paramKeyEvent)
  {
    boolean bool;
    if (paramKeyEvent.getKeyCode() != 84)
      bool = super.dispatchKeyEvent(paramKeyEvent);
    while (true)
    {
      return bool;
      if (super.dispatchKeyEvent(paramKeyEvent))
      {
        bool = false;
        continue;
      }
      bool = true;
    }
  }

  protected void handleTitleBarEvent(int paramInt)
  {
    switch (paramInt)
    {
    default:
    case 1:
    }
    while (true)
    {
      return;
      finish();
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setView(2130903078);
    String str1 = getString(2131427528);
    String str2 = getString(2131427358);
    setTitleBar(1, str1, str2, null);
    AutoCompleteTextView localAutoCompleteTextView1 = (AutoCompleteTextView)findViewById(2131624033);
    this.mActvKeyword = localAutoCompleteTextView1;
    String str3 = String.valueOf(getCacheDir().getAbsolutePath());
    HashSet localHashSet1 = (HashSet)Utils.loadUsrnameList(str3 + "/searchkeywordlistcache");
    this.keywords = localHashSet1;
    if (this.keywords == null);
    for (HashSet localHashSet2 = new HashSet(); ; localHashSet2 = this.keywords)
    {
      this.keywords = localHashSet2;
      AutoCompleteTextView localAutoCompleteTextView2 = this.mActvKeyword;
      HashSet localHashSet3 = this.keywords;
      ArrayList localArrayList = new ArrayList(localHashSet3);
      this.kwsList = localArrayList;
      ArrayAdapter localArrayAdapter = new ArrayAdapter(this, 17367050, localArrayList);
      this.keywordAdapter = localArrayAdapter;
      localAutoCompleteTextView2.setAdapter(localArrayAdapter);
      Button localButton1 = (Button)findViewById(2131624034);
      this.mBtOk = localButton1;
      Button localButton2 = this.mBtOk;
      SearchPreActivity.1 local1 = new SearchPreActivity.1(this);
      localButton2.setOnClickListener(local1);
      RadioButton localRadioButton1 = (RadioButton)findViewById(2131624037);
      this.mRbSearchUser = localRadioButton1;
      RadioButton localRadioButton2 = this.mRbSearchUser;
      SearchPreActivity.2 local2 = new SearchPreActivity.2(this);
      localRadioButton2.setOnCheckedChangeListener(local2);
      RadioButton localRadioButton3 = (RadioButton)findViewById(2131624036);
      this.mRbSearchWeibo = localRadioButton3;
      this.mRbSearchWeibo.setChecked(1);
      RadioButton localRadioButton4 = this.mRbSearchWeibo;
      SearchPreActivity.3 local3 = new SearchPreActivity.3(this);
      localRadioButton4.setOnCheckedChangeListener(local3);
      return;
    }
  }

  protected void onResume()
  {
    super.onResume();
  }

  protected void onStart()
  {
    super.onStart();
    Timer localTimer = new Timer();
    SearchPreActivity.4 local4 = new SearchPreActivity.4(this);
    localTimer.schedule(local4, 1000L);
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     com.sina.weibo.SearchPreActivity
 * JD-Core Version:    0.6.0
 */